#comments-start - More Info Dialog
[SCRIPT NAME]Copy DateTime To Clipboard
Description:
    - Copys the date and/or time to the clipboard

Arguments:
    - Arg1: Integer (Optional)
        - Options:
            - 0 = Display a standard date and time. [e.g. 1/7/2012 3:11:30 PM] (Default)
            - 1 = Display a long date [e.g. Saturday, January 07, 2012]
            - 2 = Display a short date [e.g. 1/7/2012]
            - 3 = Display regional date format [e.g. 3:12:29 PM]
            - 4 = Display 24-hour format (hh:mm). [e.g. 15:12]
            - 5 = Display 24-hour format with seconds (hh:mm:ss) [e.g. 15:13:26]
#comments-end - More Info Dialog

#include <Include\Date.au3>
#include <Include\WinClickPro.au3>

Func Main()
	Local $iFormatChoice = 0 ; (Default)
	;
	; This script has 1 optional arguments
	;
	If $CmdLine[0] > 0 And $CmdLine[1] <> "" Then
		$iFormatChoice = Number($CmdLine[1])
	EndIf

	ClipPut(_DateTimeFormat(_NowCalc(), $iFormatChoice))
EndFunc

Main()
Exit @error